package com.partners.dao.basic;

import com.partners.dao.bo.OrderDO;
import com.partners.dao.dto.DealOrderOutPutDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderDao {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderDO record);

    int insertSelective(OrderDO record);

    OrderDO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderDO record);

    int updateByPrimaryKey(OrderDO record);

    List<Map<String,Object>> getOrderListByUserId(@Param("userId") Integer userId);

    Integer selectOrderByCustomerId(Integer customerId);


    List<Map<String,Object>> getDealOrderByUid(@Param("uid") Integer uid);

    DealOrderOutPutDTO getDealOrderBycustomerId(Integer id);

}
